package com.dlyk.mapper;

import com.dlyk.model.Permission;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    List<Permission> selectMenuPermissionByUserId(Integer userId);

    List<Permission> selectButtonPermissionByUserId(Integer userId);

    List<Permission> selectPermissionListByRoleId(Integer roleId);

    List<Permission> selectNotOwnedPermissionList(Integer roleId);
}
